package com.woniuxy.myshop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(value = "com.woniuxy.myshop.mapper")
@EnableTransactionManagement //启动事务
@EnableCaching  //启动缓存
public class MyshopApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(MyshopApplication.class, args);
        }catch (RuntimeException e){
            e.printStackTrace();
        }
    }
}
